export const PatternPresetTypeSet = [ 'FLEX_TIME_CHART', 'FLEX_CATALOG_CHART' ] as const
export type PatternPresetType = typeof PatternPresetTypeSet[number]

export interface PatternPreset {
  showTimeSelector?: boolean,
  showName?: boolean,
  name?: string,
  type?: PatternPresetType,
  bucket?: string,
  gridX?: string,
  gridY?: string,
  chartParams: {
    label: string,
    fromColor: string,
    type: 'line' | 'bar',
    flux: string
  }[],
  chartOptions?: {
    reverse?: boolean,
    sort?: number,
    min?: number,
    max?: number,
    noArea?: boolean
  },
  chartStyle?: string
}
